<!--
 * @Description: 核心选择器
 * @Author: zzj
 * @Date: 2021-08-16 09:52:36
 * @LastEditors: zzj
 * @LastEditTime: 2021-08-16 11:00:55
 * @FilePath: \jiepuyiqing\tyut\zzj\2-css\day02\4-css-selector.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>核心选择器</title>
    <style>
        ul,p,body{
            margin: 0;
        }
        #one{
            color: cadetblue;
        }
        div.box{
            color: blue;
        }
        div{
            color: brown;
        }
        ul.box{
            color:darkgreen;
        }
        ul.box::after{
            content: "";
            display: block;
            clear: both;
        }
        ul.box > li{
            float: left;
            width: 100px;
            text-align: center;
        }

        div.content > *{
            color: deeppink;
        }
        div.content > p{
            color:gold;
        }
    </style>
</head>
<body>
    <div id="one" class="box"> hello world11111</div>
    <div  class="box"> hello world22222</div>
    <div  class="container"> hello world33333</div>
    <ul  class="box">
        <li>one</li>
        <li>two</li>
        <li>three</li>
    </ul>
    <p>hello world44444</p>

    <div class="content">
        <p>hello p</p>
    </div>
    <div class="content">
        <div>hello div</div>
    </div>
</body>
</html>